package com.chris.design.pattern.samples.prototype;

public class PrototypeClient {
    private AbstractPrototype prototype;

    public PrototypeClient() {
    }

    public PrototypeClient(AbstractPrototype prototype) {
        this.prototype = prototype;
    }

    public void operation(AbstractPrototype pp) {
        Object p = pp.clone();
        System.out.println(p.getClass().getSimpleName());
    }
}
